import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'article/index',
    data: info,
    method: 'post'
  })
}
export const del = info => {
  return axios.request({
    url: 'article/deleteEnter',
    data: info,
    method: 'post'
  })
}
export const add = info => {
  return axios.request({
    url: 'article/insertEnter',
    data: info,
    method: 'post'
  })
}
// 编辑入口
export const input = info => {
  return axios.request({
    url: 'article/edit',
    data: info,
    method: 'post'
  })
}
// 编辑保存
export const editorSave = info => {
  return axios.request({
    url: 'article/updateEnter',
    data: info,
    method: 'post'
  })
}
//添加进入接口
export const open = info => {
  return axios.request({
    url: 'article/add',
    data: info,
    method: 'post'
  })
}
//状态切换  推荐
export const change = info => {
  return axios.request({
    url: 'article/estate',
    data: info,
    method: 'post'
  })
}